import request from '@/utils/request'

// 查询monitormanagebuild列表
export function listTestpoint(query) {
  return request({
    url: '/monitormanage/testpoint/list',
    method: 'get',
    params: query
  })
}

// 查询monitormanagebuild详细
export function getTestpoint(id) {
  return request({
    url: '/monitormanage/testpoint/' + id,
    method: 'get'
  })
}

// 新增monitormanagebuild
export function addTestpoint(data) {
  return request({
    url: '/monitormanage/testpoint',
    method: 'post',
    data: data
  })
}

// 修改monitormanagebuild
export function updateTestpoint(data) {
  return request({
    url: '/monitormanage/testpoint',
    method: 'put',
    data: data
  })
}


// 删除monitormanagebuild
export function delTestpoint(id) {
  return request({
    url: '/monitormanage/testpoint/' + id,
    method: 'delete'
  })
}
// 导入上一年度监测点
export function importold(data) {
  return request({
    url: '/monitormanage/testpoint/import',
    method: 'post',
    data: data
  })
}
// 查询监测点年份列表
export function getyears(data) {
  return request({
    url: '/monitormanage/testpoint/getyears',
    method: 'post',
    data: data
  })
}
// 查询gps校验列表
export function reviewgps(query) {
  return request({
    url: '/monitormanage/reviewgps/list',
    method: 'get',
    params: query
  })
}
// 审核pgs
export function updateTReviewgps(data) {
  return request({
    url: '/monitormanage/reviewgps',
    method: 'put',
    data: data
  })
}

